import os
u = os.getcwd().split('/')[1:3]
pathd = '/'
for t in u:
    t+='/'
    pathd+=t
path = pathd + '.config/hypr/hyprland.conf'
old_string = 'exec-once = sakura -x ~/.config/hypr/ggt'
with open(path, 'r+') as file:
    content = file.read()
new_content = content.replace(old_string, '')
with open(path, 'w') as filew:
    filew.write(new_content)
os.system(f'rm {pathd}.config/hypr/ggt')
os.system(f'rm {pathd}.config/hypr/rmwr.py')
